package com.miracle.java2110.mapper;

import com.miracle.java2110.pojo.Drinks;
import com.miracle.java2110.pojo.DrinksExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author rwg
 */
public interface DrinksMapper {
    long countByExample(DrinksExample example);

    int deleteByExample(DrinksExample example);

    int deleteByPrimaryKey(Integer did);

    int insert(Drinks record);

    int insertSelective(Drinks record);

    List<Drinks> selectByExample(DrinksExample example);

    Drinks selectByPrimaryKey(Integer did);

    int updateByExampleSelective(@Param("record") Drinks record, @Param("example") DrinksExample example);

    int updateByExample(@Param("record") Drinks record, @Param("example") DrinksExample example);

    int updateByPrimaryKeySelective(Drinks record);

    int updateByPrimaryKey(Drinks record);

    List<Drinks> selectByParams(Map<String, Object> params);
}